//package co.yixiang.modules.shop.web.controller;
//
//import co.yixiang.modules.shop.entity.YxInvestOrderCartInfo;
//import co.yixiang.modules.shop.service.YxInvestOrderCartInfoService;
//import co.yixiang.modules.shop.web.param.YxInvestOrderCartInfoQueryParam;
//import co.yixiang.modules.shop.web.vo.YxInvestOrderCartInfoQueryVo;
//import co.yixiang.common.web.controller.BaseController;
//import co.yixiang.common.api.ApiResult;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.validation.Valid;
//
//import co.yixiang.common.web.vo.Paging;
//import co.yixiang.common.web.param.IdParam;
//
///**
// * <p>
// * 选购商品表 前端控制器
// * </p>
// *
// * @author hisen
// * @since 2020-06-11
// */
//@Slf4j
//@RestController
//@RequestMapping("/yxInvestOrderCartInfo")
//@Api("选购商品表 API")
//public class YxInvestOrderCartInfoController extends BaseController {
//
//    @Autowired
//    private YxInvestOrderCartInfoService yxInvestOrderCartInfoService;
//
//    /**
//    * 添加选购商品表
//    */
//    @PostMapping("/add")
//    @ApiOperation(value = "添加YxInvestOrderCartInfo对象",notes = "添加选购商品表",response = ApiResult.class)
//    public ApiResult<Boolean> addYxInvestOrderCartInfo(@Valid @RequestBody YxInvestOrderCartInfo yxInvestOrderCartInfo) throws Exception{
//        boolean flag = yxInvestOrderCartInfoService.save(yxInvestOrderCartInfo);
//        return ApiResult.result(flag);
//    }
//
//    /**
//    * 修改选购商品表
//    */
//    @PostMapping("/update")
//    @ApiOperation(value = "修改YxInvestOrderCartInfo对象",notes = "修改选购商品表",response = ApiResult.class)
//    public ApiResult<Boolean> updateYxInvestOrderCartInfo(@Valid @RequestBody YxInvestOrderCartInfo yxInvestOrderCartInfo) throws Exception{
//        boolean flag = yxInvestOrderCartInfoService.updateById(yxInvestOrderCartInfo);
//        return ApiResult.result(flag);
//    }
//
//    /**
//    * 删除选购商品表
//    */
//    @PostMapping("/delete")
//    @ApiOperation(value = "删除YxInvestOrderCartInfo对象",notes = "删除选购商品表",response = ApiResult.class)
//    public ApiResult<Boolean> deleteYxInvestOrderCartInfo(@Valid @RequestBody IdParam idParam) throws Exception{
//        boolean flag = yxInvestOrderCartInfoService.removeById(idParam.getId());
//        return ApiResult.result(flag);
//    }
//
//    /**
//    * 获取选购商品表
//    */
//    @PostMapping("/info")
//    @ApiOperation(value = "获取YxInvestOrderCartInfo对象详情",notes = "查看选购商品表",response = YxInvestOrderCartInfoQueryVo.class)
//    public ApiResult<YxInvestOrderCartInfoQueryVo> getYxInvestOrderCartInfo(@Valid @RequestBody IdParam idParam) throws Exception{
//        YxInvestOrderCartInfoQueryVo yxInvestOrderCartInfoQueryVo = yxInvestOrderCartInfoService.getYxInvestOrderCartInfoById(idParam.getId());
//        return ApiResult.ok(yxInvestOrderCartInfoQueryVo);
//    }
//
//    /**
//     * 选购商品表分页列表
//     */
//    @PostMapping("/getPageList")
//    @ApiOperation(value = "获取YxInvestOrderCartInfo分页列表",notes = "选购商品表分页列表",response = YxInvestOrderCartInfoQueryVo.class)
//    public ApiResult<Paging<YxInvestOrderCartInfoQueryVo>> getYxInvestOrderCartInfoPageList(@Valid @RequestBody(required = false) YxInvestOrderCartInfoQueryParam yxInvestOrderCartInfoQueryParam) throws Exception{
//        Paging<YxInvestOrderCartInfoQueryVo> paging = yxInvestOrderCartInfoService.getYxInvestOrderCartInfoPageList(yxInvestOrderCartInfoQueryParam);
//        return ApiResult.ok(paging);
//    }
//
//}
//
